﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TiKuKaoShiAdd.aspx.cs" Inherits="OA.aspx.Moa.DocFile.TiKuKaoShiAdd" %>

<html>
<head>
    <title>
        <%=System.Configuration.ConfigurationManager.AppSettings["SYSTitle"]%></title>
<link href="../css/main.css" type="text/css" rel="stylesheet" />
    <meta content="minimum-scale=1.0, width=device-width, maximum-scale=0.6667, user-scalable=no"
        name="viewport" />
    <link href="../../Style/Style.css" type="text/css" rel="STYLESHEET">
    <script language="javascript" type="text/javascript">
        function PrintTable() {
            document.getElementById("PrintHide").style.visibility = "hidden"
            print();
            document.getElementById("PrintHide").style.visibility = "visible"
        }
    </script>
    <script language="JavaScript" type="text/javascript">   
<!--   
    var maxtime = <%=MaxTime %> //一个小时，按秒计算，自己调整!   
        function CountDown() {
            if (maxtime >= 0) {
                minutes = Math.floor(maxtime / 60);
                seconds = Math.floor(maxtime % 60);
                msg = "距离考试结束还有" + minutes + "分" + seconds + "秒";
                document.all["timer"].innerHTML = msg;
                if (maxtime == 5 * 60) alert('注意，还有5分钟!');
                --maxtime;
            }
            else {
                clearInterval(timer);
                alert("时间到，结束!");
                document.getElementById('iButton1').click();
            }
        }
        timer = setInterval("CountDown()", 1000);
        //-->   
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table id="PrintHide" style="width: 100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td valign="middle" style=" height: 30px;">
                </td>
                <td align="right" valign="middle" style=" height: 30px;">
                    
<asp:Button ID="iButton1" runat="server" CssClass="btn btn-blue" Text="提交" OnClick="iButton1_Click" />
                    <img src="../../images/Button/JianGe.jpg" />&nbsp;
                    <button type="button" class="btn btn-yellow" onclick="javascript:window.history.go(-1)">返回</button>&nbsp;
                </td>
            </tr>
            <tr>
                <td height="3px" colspan="2" style="background-color: #ffffff">
                </td>
            </tr>
        </table>
        <table style="width: 100%" bgcolor="#999999" class="gridview_m" border="0" cellpadding="2" cellspacing="1">
            <tr>
                <td style="width: 10%; height: 25px; background-color: #f9f9f7" align="right">
                    请选择试卷：
                </td>
                <td style="padding-left: 5px; height: 25px; background-color: #ffffff">
                    <asp:DropDownList ID="DropDownList1" runat="server">
                    </asp:DropDownList>
                    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="确认选择该试卷" />
                    <asp:Label ID="Lab1" runat="server" Visible="False"></asp:Label>
                    <asp:Label ID="Lab2" runat="server" Visible="False"></asp:Label>
                    <asp:Label ID="Lab3" runat="server" Visible="False"></asp:Label>
                    <asp:Label ID="Lab4" runat="server" Visible="False"></asp:Label>
                    <asp:Label ID="Lab5" runat="server" Visible="False"></asp:Label>
                </td>
                <td style="padding-left: 5px; height: 25px; width: 80%; background-color: #ffffff">
                    <asp:Panel ID="Panel1" runat="server" Height="25px" Width="80%" Visible="False">
                        <div id="timer" style="color: red; font-weight: bold;">
                        </div>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td colspan="3" style="padding-left: 5px; height: 25px; background-color: #ffffff">
                    <asp:Label ID="Label1" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
